package com.web.servlet;



import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.training.service.api.IUserService;

@Controller
@RequestMapping("/application")
public class LoginController  extends  BaseController {
	
  public LoginController(){
		
		System.out.println("================================LoginController==============================");
		System.out.println("=================================LoginController=============================");
	}
	
	
	@Autowired
	private IUserService userService;

	 @RequestMapping("/login.do")
	private  String findApplicationInfoByPage(){
		Map<String,Object> map = new HashMap<String,Object>();
		
		userService.Login("user", "123", "123");
//		super.pageParam(request, map);
//		String queryCondition = request.getParameter("queryCondition");
//	    map.put("queryCondition", replaceQueryBlank(queryCondition));
//		modelMap.put("queryCondition", queryCondition);
//		PaginationModel paginationModel  =  new PaginationModel();
//		paginationModel=applicationService.findApplicationInfoByPage(map);
//		super.page2View(modelMap, paginationModel, request);
		return "/index";
	}
	 
	 @RequestMapping(value="/login")
	private  String Login(){
		Map<String,Object> map = new HashMap<String,Object>();
		
		userService.Login("user", "123", "123");
//		super.pageParam(request, map);
//		String queryCondition = request.getParameter("queryCondition");
//	    map.put("queryCondition", replaceQueryBlank(queryCondition));
//		modelMap.put("queryCondition", queryCondition);
//		PaginationModel paginationModel  =  new PaginationModel();
//		paginationModel=applicationService.findApplicationInfoByPage(map);
//		super.page2View(modelMap, paginationModel, request);
		return "/index";
	}

}
